var levelToLoad : String;
var normalTexture:Texture2D;
var rollOverTexture:Texture2D;
var beep : AudioClip;
var QuitButton:boolean=false;

function OnMouseEnter() {
    guiTexture.texture = rollOverTexture;
    audio.PlayOneShot(beep);
}

function OnMouseExit() {
    guiTexture.texture = normalTexture;
}

function OnMouseUp(){
    
    yield new WaitForSeconds(0.35);

    if(QuitButton){
        Application.Quit();
        Debug.Log("This part works!");
    }
    else {
        Application.LoadLevel(levelToLoad);
    }
}
